package com.wgchao.authmanager.infrastructure.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.io.Serializable;
import java.util.List;

/**
 * @作者：wgchao
 * @时间：10:11 2020/5/5 0005
 * @用途：分页数据
 **/
@Data
@AllArgsConstructor
@ApiModel(value = "pageResult", description = "分页返回数据")
public class PageResult<T> implements Serializable {
    @ApiModelProperty(value = "数据总数", name = "total")
    private long total;

    @ApiModelProperty(value = "单页行数", name = "limit")
    private Integer limit;

    @ApiModelProperty(value = "当前页码", name = "curr")
    private Integer curr;

    @ApiModelProperty(value = "数据", name = "rows")
    private List<T> rows;
}
